<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateTasklistTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('tasklist', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('project')->default(0);
			$table->string('name')->default('');
			$table->text('desc', 65535);
			$table->string('start')->default('');
			$table->boolean('status')->default(0)->index('tasklist_status');
			$table->boolean('access')->default(0);
			$table->integer('milestone')->default(0)->index('tasklist_milestone');
			$table->integer('deliverable_item')->default(0)->index('tasklist_deliverable_item');
			$table->timestamps();
			$table->softDeletes();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('tasklist');
	}

}
